package com.zcoj.mail.pojo;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 
 * @author 剩xia的盛夏
 * @date 2023/03/04 23:39
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class MailLog {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String fromMail;

    private String toMail;

    private Integer status;

    private String username;

    private Integer isOk;

    private String type;

    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
